package com.jiyun.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.om.entity.ReceiptConfirmation;
import com.jiyun.mapper.ReceiptConfirmationMapper;
import com.jiyun.service.IReceiptConfirmationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 回单表 服务实现类
 * </p>
 *
 * @author zhx
 * @since 2025-02-12
 */
@Service
public class ReceiptConfirmationServiceImpl extends ServiceImpl<ReceiptConfirmationMapper, ReceiptConfirmation> implements IReceiptConfirmationService {
@Autowired
private ReceiptConfirmationMapper receiptConfirmationMapper;
    @Override
    public Page<ReceiptConfirmation> getAll(Integer pageNum, Integer pageSize, ReceiptConfirmation receiptConfirmation) {
        Page<ReceiptConfirmation> page = new Page<>(pageNum, pageSize);
        return receiptConfirmationMapper.getAll(page,receiptConfirmation);
    }

    @Override
    public List<ReceiptConfirmation> findAll() {

        return receiptConfirmationMapper.findAll();
    }
}
